//3：接上题，15名同学，用两个数组，一个存放姓名，一个存放成绩（string和int)
//,成绩范围是0-100，如果输入错误，则重新输入。最后输出所有人的名字和成绩
public class zy314_320 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double[] arr = new double[15];
        String[] preson = new String[15];
        int count = 0;
        for (; ; ) {
            System.out.println("Please input the No." + (count + 1) + "student's name:");
            String name = in.next();
            System.out.println("Please input the No." + (count + 1) + "student's score:");
            int score = in.nextInt();
            if (score <= 100 && score >= 0) {
                preson[count] = name;
                arr[count] = score;
                count++;
            } else {
                System.out.println("Input error!Please input again!");
            }
            if (count == arr.length) {
                break;
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println("Name:" + preson[i] + "  Score:" + arr[i]);
        }
    }
}